package com.springboot.framework.controller.request;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author SWF
 * @date 2019/6/24 13:25
 **/
@Data
public class UserAddressInsert2 {
    @NotEmpty(message = "参数错误")
    private String userWechatOpenid;

    @NotEmpty(message = "参数错误")
    private String contactName;

    @NotEmpty(message = "参数错误")
    private String contactPhone;

//    @NotEmpty(message = "参数错误")
//    private String areaCode;

    @NotEmpty(message = "参数错误")
    private String areaName;

    @NotEmpty(message = "参数错误")
    private String address;

    private String label;

    @NotNull(message = "参数错误")
    private BigDecimal longitude;

    @NotNull(message = "参数错误")
    private BigDecimal latitude;
}
